//package com.daocao.hua.impl;
//
//import android.content.Context;
//
//import com.daocao.hua.constant.Const;
//import com.daocao.hua.http.CallBackListener;
//import com.daocao.hua.http.InterfaceServer;
//import com.daocao.hua.http.InfoCallBack;
//import com.daocao.hua.interfaces.LoanRecordInfo;
//import com.daocao.hua.http.ResponseListener;
//import com.daocao.hua.model.LoanRecordModel;
//import com.daocao.hua.model.RequestModel;
//import com.daocao.hua.model.ResponseModel;
//import com.daocao.hua.util.JsonUtil;
//
//import java.util.HashMap;
//
///**
// * 借款记录
// */
//public class LoanRecordInfoImpl implements LoanRecordInfo {
//
//    public void getLoanRecordInfo(Context paramContext, final InfoCallBack callBack) {
//        RequestModel model = new RequestModel(new HashMap());
//        InterfaceServer.getInstance(paramContext.getApplicationContext()).requestInterface(Const.DEAL_LIST, Const.RequestMethod.POST, model, Const.DEFAULT_TIMEOUT, new CallBackListener<LoanRecordModel>(LoanRecordModel.class,callBack));
////                new ResponseListener() {
////            public void onFinishInMainThread(Object paramAnonymousObject) {
////            }
////
////            public void onStartInMainThread(Object paramAnonymousObject) {
////                paramInfoCallBack.onFailure(paramAnonymousObject.toString());
////            }
////
////            public void onSuccessInMainThread(int paramAnonymousInt, String paramAnonymousString, Object result) {
////                try {
////                    LoanRecordModel model = (LoanRecordModel) result;
////                    if (model.getStatus() == 1) {
////                        paramInfoCallBack.onSuccess(model);
////                    } else
////                        paramInfoCallBack.onFailure(model.getMsg());
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<LoanRecordModel>fromJson(content, LoanRecordModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////        });
//    }
//}
